<h1>Listing countries</h1>

<table>
  <tr>
    <th>Id</th>
    <th>Name</th>
    <th>Production</th>
    <th>Consumption</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @countries.each do |country| %>
  <tr>
    <td><%= country.id %></td>
    <td><%= country.name %></td>
    <td><%= country.production %></td>
    <td><%= country.consumption %></td>
    <td><%= link_to 'Show', country %></td>
    <td><%= link_to 'Edit', edit_country_path(country) %></td>
    <td><%= link_to 'Destroy', country, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Country', new_country_path %>
